package com.caigou.comm.base.ext

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.lwkandroid.widget.ngv.INgvImageLoader

/**
 * @author #Suyghur.
 * Created on 2021/11/28
 */
class GlideDisplay : INgvImageLoader<String> {
    override fun load(source: String?, imageView: ImageView, width: Int, height: Int) {
        Glide.with(imageView.context)
            .load(source)
            .apply(RequestOptions().override(width, height))
            .into(imageView)
    }
}